package com.by.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDateTime;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 黄佳辉
 * @since 2023-01-04
 */
@Data
public class Attachment implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;

    private String url;

    /**
     * 1 、图片	            2、视频	            ....
     */
    private Integer type;

    private String miniUrl;

    private LocalDateTime uploadTime;

    /**
     * 0 否	            1 是
     */
    private Boolean isdefault;

    private String businessId;

    /**
     * 1 商品	            2 评论	            ....
     */
    private Integer businessType;


}
